/*-------------------------------------------------------------------------------------------------------------------------
	Print things to the chat. !print <text>
-------------------------------------------------------------------------------------------------------------------------*/

local PLUGIN = {}
PLUGIN.Title = "Print"
PLUGIN.Description = "Print something to the chat."
PLUGIN.Author = "GuitarFREAK9700"
PLUGIN.ChatCommand = "print"
PLUGIN.Usage = "<text>"
PLUGIN.Privileges = { "Print" }

function PLUGIN:Call( ply, args )
	if ( ply:EV_HasPrivilege( "Print" ) ) then
		local text = table.concat( args, " " )
		
		if ( #text > 0 ) then
			evolve:Notify( Color( 255, 0, 0, 255 ), tostring( text ) )
		end
	else
		evolve:Notify( ply, evolve.colors.red, evolve.constants.notallowed )
	end
end

evolve:RegisterPlugin( PLUGIN )